* {
    margin: 0;
    padding: 0;
}



.header-main{
    background: rgb(250, 250, 250);
    width: 100%;
}
/* 顶部 */
.title{
    width: 1240px;
    height: 40px;
    margin: auto;
    position: relative;
}
/* 顶部标签 */
.title>a,.title>span,.title-right>a,.title-right>span{
    text-decoration: none;
    outline: none;
    line-height: 40px;
    font-size: 13px;
    color: rgb(140, 140, 140);
    margin: 0 2px;
}
.title-right{
    position: absolute;
    right: 0; top: 0; bottom: 0;
}

/* 小米logo */
.header-b{
    width: 1240px;
    height: 110px;
    margin: auto;
    position: relative;
}
.header-b>img{
    margin: 25px 0 15px;
}
/* 小闹钟 */
.alarm{
    position: absolute;
    right: 0;
    top: 25px;
    font-size: 13px;
    margin: auto;
}
.alarm>img{
    position: absolute;
    top: 0; right: 108px;
}
/* 购物车 */
.buy{
    width: 130px;
    line-height: 40px;
    background: rgb(255, 219, 61);
    position: absolute;
    right: 0;
    bottom: 15px;
    font-size: 17px;
    text-align: center;
}
.buy>a{
    text-decoration: none;
    outline: none;
    color: #333;
}
.buy>img{
    display: inline-block;
    margin-top: -3px;
}

/* 搜索框 */
.header-b>form{
    width: 420px;
    height: 40px;
    border: 1px solid rgb(204, 204, 204);
    position: absolute;
    bottom: 15px;
    right: 140px;
}
/* 输入框 */
.header-b>form>input{
    width: 380px;
    padding: 0 10px;
    line-height: 38px;
    border: none;
    font-size: 14px;
    color: rgb(140, 140, 140);
}
/* 放大镜 */
.header-b>form>a{
    display: inline-block;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 0;
    border-left: 1px solid rgb(204, 204, 204);
    background: url("../images/fangdajing.png") no-repeat center center;
}
/* 搜索框内的字 */
.header-b>form>div{
    text-align: center;
    position: absolute;
    right: 55px;
    top: 50%;
    margin-top: -12px;
}
.header-b>form>div>p{
    display: inline-block;
    font-size: 14px;
    line-height: 15px;
    background: rgb(243, 243, 243);
}

/* 标题栏 */
.nav {
    width: 1240px;
    height: 50px;
    margin: auto;
    background: rgb(64, 65, 68);
    display: flex;
    align-items: center;
}
/* 全部商品分类 */
.nav>p{
    width: 248px;
    text-align: center;
    color: #fff;
    font-size: 20px;
    height: 50px;
    line-height: 50px;
    background: rgb(255, 74, 0);
    margin: 0;
}
/* 首页，小米手机... */
.nav>a{
    display: inline-block;
    line-height: 40px;
    text-decoration: none;
    outline: none;
    color: #fff;
    font-size: 20px;
    margin: 0 auto;
}

/* 最底部div块 */
.section-footer{
    margin-top: 70px;
    background: rgb(250, 250, 250);
}
/* 底部第一行 */
.section-footer-title{
    width: 1240px;
    height: 160px;
    margin: auto;
    border-bottom: 1px solid rgb(223, 223, 223);
}
/* 服务、退货、换货、包邮、售后五个div块 */
.serve,.return,.replace,.baoyou,.shouhou{
    float: left;
    width: 248px;
    height: 160px;
    margin: auto;
    text-align: center;
    font-size: 16px;
    color: rgb(102, 102, 102);
}
/* 里面的图片位置 */
.serve>img,.return>img,.replace>img,.baoyou>img,.shouhou>img{
    display: block;
    margin: 40px auto 20px;
}

/* 底部第二行 */
.section-footer-label{
    width: 1240px;
    height: 200px;
    border-bottom: 1px solid rgb(223, 223, 223);
    margin: auto;
}
/* 帮助中心 */
.help-center{
    float: left;
    width: 170px;
    height: 135px;
    margin-top: 40px;
    border-right: 1px solid rgb(223, 223, 223);
}
/* 服务支持、小米之家、关于小米、关注我们 */
.serve-support,.mi-home,.about-mi,.focus-us{
    float: left;
    margin-left: 30px;
    width: 160px;
    height: 135px;
    margin-top: 40px;
    border-right: 1px solid rgb(223, 223, 223);
}
/* 五个块的标题行 */
.help-center>span,.serve-support>span,.mi-home>span,.about-mi>span,.focus-us>span{
    display: block;
    margin-bottom: 22px;
    font-size: 16px;
}
/* 五个快的链接行 */
.help-center>a,.serve-support>a,.mi-home>a,.about-mi>a,.focus-us>a{
    display: block;
    margin-bottom: 18px;
    color: rgb(127, 127, 127);
    font-size: 13px;
    text-decoration: none;
    outline: none;
}
/* 电话号码块 */
.tel{
    width: 300px;
    float: left;
    height: 200px;
    text-align: center;
    font-size: 13px;
    line-height: 25px;
    color: rgb(127, 127, 127);
}
/* 400-100-5678 */
.tel>span{
    display: block;
    color: rgb(153, 153, 153);
    font-size: 25px;
    margin: 40px auto 10px;
}
/* 24小时在线客服 */
.tel>a{
    display: block;
    width: 120px;
    height: 30px;
    text-decoration: none;
    outline: none;
    font-size: 13px;
    color: #fff;
    background: rgb(255, 74, 0);
    line-height: 30px;
    margin: 15px auto 0;
}

/* 底部最后一行 小米旗下网站... */
.section-footer-link{
    width: 1240px;
    height: 170px;
    margin: auto;
    text-align: center;
}
/* 第一行链接 */
.section-footer-link>span{
    display: block;
    line-height: 20px;
    font-size: 12px;
    color: #333;
    margin-top: 40px;
    margin-left: 80px;
}
.section-footer-link>span>a{
    text-decoration: none;
    outline: none;
    font-size: 13px;
    color: #333;
}
.section-footer-link>span>span{
    color: rgb(223, 223, 223);
    font-size: 13px;
    margin: 0 2px;
}
/* 第二行链接 */
.section-footer-link>a{
    display: block;
    line-height: 20px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    outline: none;
    margin-bottom: 20px;
}
.section-footer-link>img{
    display: inline-block;
    margin-left: 120px;
}
/* 语言下拉选框 */
select{
    width: 200px;
    height: 38px;
    border: 1px solid rgb(170, 170, 170);
}
select:focus{
    outline: none;
}


.main{
    position: relative;
    width: 1240px;
    margin: auto;
}
/* 左边标签 */
.left{
    width: 248px;
    height: 592px;
    border-left: 1px solid rgb(223, 223, 223);
}
/* 每个块 */
.left>div{
    width: 248px;
    height: 74px;
    border-bottom: 1px solid rgb(223, 223, 223);
}
.left>div>p{
    display: block;
    font-size: 13px;
    line-height: 13px;
    color: rgb(254, 118, 62);
    padding: 20px 0 0 20px;
    margin: 0;
}
.left>div>a{
    display: inline-block;
    text-decoration: none;
    outline: none;
    font-size: 13px;
    line-height: 13px;
    color: rgb(153, 153, 153);
    margin-top: 15px;
}
.indent{
    margin-left: 20px;
}

/* 轮播 */
.content{
    cursor: pointer;
    width:992px;height:420px;
    position: absolute;
    right: 0;
    top: 0;
}
#list{
    position: absolute;
    width:992px;
    height:420px;
}
#list img,#prev,#next,#btns{
    position: absolute;
}
#list img:not(:header-b-child){
    display: none;
}
#prev,#next{
    cursor: pointer;
    top:50%;transform: translateY(-50%);
    z-index: 100;width:40px;height:70px;
    background:url("../images/icon-slides.png");
    border:none;
    outline: none;
}
#prev{
    background-position-x:-86px
}
#prev:hover{
    background-position: 0;
}
#next:hover{
    background-position-x: -43px
}
#next{
    right:0;
    background-position-x:-125px;
}
#btns{
    z-index: 101;
    /* transform: translateX(-50%); */
    bottom: 20px;
    right: 20px;
}
#btns .current{
    /* background:orangered; */
    color: #fff;
}    
#btns>span{
    cursor: pointer;
    width:30px;
    height:30px;
    display: inline-block;
    border-radius: 50%;
    border:1px solid #fff;
    background-color:rgba(44,44,44,.5);
    text-align: center;
    line-height: 30px;
}

/* 右下角三张图 */
.img{
    width: 992px;
    height: 172px;
    position: absolute;
    right: 0;
    bottom: 0;
}
.img>img{
    display: block;
    float: left;
    width: 330.66px;
    height: 172px;
    border-right: 1px solid rgb(223, 223, 223);
    border-bottom: 1px solid rgb(223, 223, 223);
}


/* 小米明星单品 */
.fashion{
    width: 1240px;
    height: 60px;
    /* background: red; */
    margin: auto;
    font-size: 16px;
    line-height: 60px;
    color: rgb(114, 114, 114);
    position: relative;
}
.fashion>p{
    display: inline-block;
    font-size: 13px;
    line-height: 60px;
    margin-left: 5px;
    color: rgb(163, 154, 154);
}
/* 切换页码图标 */
.fashion>div{
    position: absolute;
    right: 0;
    bottom: 8px;
}
.fashion>div>a{
    display: block;
    float: left;
    width: 32px;
    height: 22px;
    border: 1px solid rgb(223, 223, 223);
}
.fashion>div>a:header-b-child{
    background: url("../images/05.png") no-repeat center center;
}
.fashion>div>a:last-child{
    background: url("../images/06.png") no-repeat center center;
}

/* 小米明星单品 4个框 */
.product-bar{
    width: 1240px;
    height: 310px;
    margin: auto;
}
.product-bar>div{
    float: left;
    width: 310px;
    height: 310px;
    border-top: 1px solid rgb(223, 223, 223);
    border-left: 1px solid rgb(223, 223, 223);
    border-bottom: 1px solid rgb(223, 223, 223);
    text-align: center;
    font-size: 17px;
    color: rgb(86, 86, 86);
    position: relative;
}
.product-bar>div:last-child{
    border-right: 1px solid rgb(223, 223, 223);
}
/* 每个框图片、文字属性 */
.product-bar>div>img{
    display: block;
    margin: 0 auto 5px;
}
.product-bar>div>span{
    display: block;
    font-size: 13px;
    color: rgb(153, 153, 153);
    position: absolute;
    left: 0; right: 0;
    bottom: 35px;
}

.section-new{
    width: 1240px;
    height: 52px;
    margin: auto;
    position: relative;
}

.section-new>p{
    color: rgb(114, 114, 114);
    position: absolute;
    bottom: 8px;
    left: 0;
    margin: 0;
}

.section-new>a{
    color: rgb(86, 86, 86);
    position: absolute;
    bottom: 8px;
    right: 0;
    margin: 0;
    text-decoration: none;
    outline: none;
}

.section-new-all{
    width: 1240px;
    height: 972px;
    margin: auto;
}
.section-new-left{
    float: left;
    width: 930px;
}
.block1-1{
    float: left;
    width: 620px;
    height: 310px;
    border: 1px solid rgb(223, 223, 223);
    background: url("../images/fanghezi0407xiao.jpg") no-repeat center center;
}
.block1-2{
    float: left;
    width: 310px;
    height: 310px;
    border: 1px solid rgb(223, 223, 223);
    border-left: none;
    background: url("../images/T1qaVvB7CT1RXrhCrK!220x220.jpg") no-repeat center center;
    color: rgb(102, 102, 102);
    padding-top: 25px;
    padding-left: 20px;
    font-size: 13px;
}
.block2-1{
    float: left;
    width: 310px;
    height: 316px;
    border: 1px solid rgb(223, 223, 223);
    border-top: none;
    position: relative;
    font-size: 13px;
}
.block2-1-1-1{
    width: 155px;
    height: 158px;
    color: rgb(102, 102, 102);
    padding-top: 25px;
    padding-left: 20px;
    position: absolute;
    left: 0; top: 0;
}
.block2-1-1-2{
    width: 155px;
    height: 158px;
    background: url("../images/T1TfAgB4KT1RXrhCrK!220x220.jpg") no-repeat center center;
    background-size:contain;
    position: absolute;
    right: 0; top: 0;
}
.block2-1-2-1{
    width: 155px;
    height: 158px;
    color: rgb(102, 102, 102);
    padding-top: 25px;
    padding-left: 20px;
    position: absolute;
    left: 0; bottom: 0;
}
.block2-1-2-2{
    width: 155px;
    height: 158px;
    background: url("../images/T1SrKTBmWT1RXrhCrK!220x220.jpg") no-repeat center center;
    background-size:contain;
    position: absolute;
    right: 0; bottom: 0;
}
.block2-2{
    float: left;
    width: 310px;
    height: 316px;
    border-bottom: 1px solid rgb(223, 223, 223);
    border-right: 1px solid rgb(223, 223, 223);
    background: url("../images/T1crEgBCYT1RXrhCrK!220x220.jpg") no-repeat center center;
    color: rgb(102, 102, 102);
    padding-top: 25px;
    padding-left: 20px;
    font-size: 13px;
}
.block2-3{
    float: left;
    width: 310px;
    height: 316px;
    border-bottom: 1px solid rgb(223, 223, 223);
    border-right: 1px solid rgb(223, 223, 223);
    background: url("../images/T12qZvB7CT1RXrhCrK!220x220.jpg") no-repeat center center;
    color: rgb(102, 102, 102);
    padding-top: 25px;
    padding-left: 20px;
    font-size: 13px;
}
.block3-1{
    float: left;
    width: 310px;
    height: 346px;
    border: 1px solid rgb(223, 223, 223);
    border-top: none;
    background: url("../images/baohuke.png") no-repeat center center;
    color: rgb(102, 102, 102);
    padding-top: 25px;
    padding-left: 20px;
    font-size: 13px;
}
.block3-2{
    float: left;
    width: 310px;
    height: 346px;
    border-bottom: 1px solid rgb(223, 223, 223);
    border-right: 1px solid rgb(223, 223, 223);
    background: url("../images/T1DrL_B4CT1RXrhCrK!220x220.jpg") no-repeat center center;
    color: rgb(102, 102, 102);
    padding-top: 25px;
    padding-left: 20px;
    font-size: 13px;
}
.block3-3{
    float: left;
    width: 310px;
    height: 346px;
    border-bottom: 1px solid rgb(223, 223, 223);
    border-right: 1px solid rgb(223, 223, 223);
    background: url("../images/T1GXxvBsET1RXrhCrK!220x220.jpg") no-repeat center center;
    color: rgb(102, 102, 102);
    padding-top: 25px;
    padding-left: 20px;
    font-size: 13px;
}

.section-new-right{
    float: left;
    width: 310px;
    /* height: 972px; */
    background: rgb(250, 250, 250);
}
.block4-1{
    width: 310px;
    height: 130px;
    border-top: 1px solid rgb(223, 223, 223);
}
.block4-1-1{
    float: left;
    width: 174px;
    height: 130px;
    line-height: 20px;
    font-size: 17px;
    padding-left: 20px;
    padding-top: 50px;
    position: relative;
}
.block4-1-1>p:header-b-child{
    display: block;
    width: 55px;
    line-height: 20px;
    color: #fff;
    background: red;
    position: absolute;
    margin: auto;
    top: 0; left: 0; right: 0;
    text-align: center;
    font-size: 13px;
}
.block4-1-1>span{
    font-size: 13px;
    color: red;
}
.block4-1-1>s{
    font-size: 13px;
    color: rgb(102, 102, 102);
}
.block4-1-1>p:last-child{
    font-size: 13px;
    color: rgb(102, 102, 102);
}
.block4-1-2{
    float: left;
    width: 136px;
    height: 130px;
    border-right: 1px solid rgb(223, 223, 223);
    background: url("../images/T1ByZTBjJT1RXrhCrK.jpg") no-repeat center center;
}

.block4-2-1{
    float: left;
    width: 174px;
    height: 130px;
    line-height: 20px;
    font-size: 17px;
    padding-left: 20px;
    padding-top: 35px;
    border-top: 1px solid rgb(223, 223, 223);
}
.block4-2-1>p{
    display: block;
    line-height: 20px;
    font-size: 13px;
    color: rgb(102, 102, 102);
    margin: 0;
}
.block4-2-2{
    float: left;
    width: 136px;
    height: 130px;
    border-right: 1px solid rgb(223, 223, 223);
    border-top: 1px solid rgb(223, 223, 223);
    background: url("../images/channel-list-cool.jpg") no-repeat center center;
}

.block4-3-1{
    float: left;
    width: 174px;
    height: 130px;
    line-height: 20px;
    font-size: 17px;
    padding-left: 20px;
    padding-top: 35px;
    border-top: 1px solid rgb(223, 223, 223);
}
.block4-3-1>p{
    display: block;
    line-height: 20px;
    font-size: 13px;
    color: rgb(102, 102, 102);
    margin: 0;
}
.block4-3-2{
    float: left;
    width: 136px;
    height: 130px;
    border-right: 1px solid rgb(223, 223, 223);
    border-top: 1px solid rgb(223, 223, 223);
    background: url("../images/channel-list-section-new.jpg") no-repeat center center;
}

.block4-4{
    float: left;
    width: 310px;
    height: 580px;
    border: 1px solid rgb(223, 223, 223);
    border-left: none;
}
.block4-4>div{
    width: 250px;
    height: 50px;
    margin: auto;
    border-bottom: 1px solid rgb(223, 223, 223);
    position: relative;
    font-size: 13px;
    line-height: 50px;
}
.block4-4>div:header-b-child{
    margin-top: 30px;
}
.block4-4>div>p{
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
}
.block4-4>div>a{
    color: rgb(102, 102, 102);
    text-decoration: none;
    outline: none;
}
.block4-4>div:hover a,.block4-4>div:hover p{
    color: red;
}

.block4-4>p{
    display: block;
    margin: 40px 0 15px 30px;
    font-size: 15px;
    color: rgb(102, 102, 102);
}
.block4-4>input{
    width: 250px;
    height: 40px;
    border: 1px solid rgb(223, 223, 223);
    outline: none;
    margin-left: 30px;
    margin-bottom: 20px;
    font-size: 13px;
}
.block4-4>select{
    display: block;
    width: 250px;
    height: 40px;
    border: 1px solid rgb(170, 170, 170);
    margin-left: 30px;
    margin-bottom: 25px;
    font-size: 13px;
}
.block4-4>span{
    display: block;
    font-size: 13px;
    line-height: 15px;
    color: rgb(102, 102, 102);
    margin: 30px 30px 10px;
}
.block4-4>button{
    width: 250px;
    height: 40px;
    background: rgb(220, 222, 228);
    color: #fff;
    border: 1px solid rgb(204, 204, 204);
    margin: 0 30px;
}